package com.jeecms.wicool.manager.user;

import java.util.List;

import com.jeecms.cms.entity.main.CmsUser;
import com.jeecms.common.page.Pagination;
import com.jeecms.wicool.entity.user.UserAccount;

public interface UserAccountMng {
	public Pagination getPage(Integer shopId,String userName,String mobile,int pageNo, int pageSize,CmsUser user);
	public Pagination getPage(String userName,String phoneNo,int pageNo, int pageSize,CmsUser user);
	public UserAccount findById(Integer id); 
	public UserAccount update(UserAccount bean,Integer shopId,Integer userId);
	public UserAccount save(UserAccount bean,Integer shopId,Integer userId);
	public UserAccount deleteById(Integer id);
	public UserAccount[] deleteByIds(Integer[] ids);
	
	public List<UserAccount> getListUserAccountByUserId(Integer userId);
	
	public List<UserAccount> getListUserAccountByVipLevel(Integer vipLevel);
	
	public List<UserAccount> getListUserAccountByScore(Integer beginScore,Integer endScore);
	
	public void batchUpdateVipLevel(Integer beginScore,Integer endScore,String vipLevel);
	
	public List<UserAccount> getListUserAccountByIds(String ids);
	
	public void batchUpdateVipLevel(String ids,String vipLevel);
}